﻿namespace Up6.core.Up6Manager.Models.Req;

public class CreateReq
{
    public static CreateReq build() { return new CreateReq(); }
    public string? op { get; set; }
    public string? pid { get; set; }
    public string? pidRoot { get; set; }
    public string? object_id { get; set; }
    public string? md5 { get; set; }
    public string? id { get; set; }
    public string nameLoc { get; set; } = string.Empty;
    public string? uid { get; set; }
    public long lenLoc { get; set; } = 0;
    public long lenSvr { get; set; } = 0;
    public long lenLocSec { get; set; } = 0;
    public string sizeLoc { get; set; } = string.Empty;
    public int blockSize { get; set; } = 5242880;
    public IFormFile? block { get; set; }
    public string blockMd5 { get; set; } =string.Empty;
    public int blockCount{ get; set; } = 0;
    public int blockSizeCry{ get; set; } = 0;
    public int blockSizeCpr { get; set; } = 0;
    public bool blockCpr{ get; set; } = false;
    public string blockCprType { get; set; }="";
    public int blockIndex{ get; set; } = 1;
    public long  blockOffset{ get; set; } = 0;
    public long  blockOffsetCry{ get; set; } = 0;

    /// <summary>
    /// 是否加密存储
    /// </summary>
    public bool encrypt { get; set; } = false;
    public string blockEncryptAgo { get; set; }=string.Empty;
    public int blockSizeSec { get; set; } = 0;
    public string token { get; set; } = string.Empty;
    public string? callback { get; set; }
    public string? pathLoc { get; set; }
    public string? pathSvr { get; set; }
    public string? pathRel { get; set; }
    public string? complete { get; set; } = "false";
}
